  function str=dispaj(varargin); 
% function str=dispaj(varargin); 
% 
% Create a composite string with a variable number of elements 
% which can be strings, numeric or individual cell elements 
% and display the string on the screen 
% 
% Alejandro Justiniano 12/31/04 
n=nargin; 
if n==0 
    return 
end  
ii=1; 
for ii=1:n; 
    st=varargin{ii};
    if isstr( st ) == 0
        if iscell( st ) == 1 
            st=char(st) ; 
        end 
        if isnumeric( st );
            stemp=num2str(st); 
            if ( st-round(st) ) ~= 0 
                a=findstr(stemp,'.' );              
                st=sprintf(['%',num2str(a),'.3f'],st);
            else 
                st=stemp; 
            end
        end 
    end 
    if ii > 1 
        str=[str,' ',st]; 
    else
        str=st; 
    end
end 
disp( str ); 

